package com.quick.android.app;

import com.quick.android.handler.image.ImageLoadHandler;

import android.app.Application;

public class App extends Application {

	@Override
	public void onCreate() {
		super.onCreate();
		/** 异常捕获机制 */
		AppException.getInstance().init(getApplicationContext());
	}

	@Override
	public void onTerminate() {
		super.onTerminate();
	}

	@Override
	public void onTrimMemory(int level) {
		super.onTrimMemory(level);
		ImageLoadHandler.getInstance(getApplicationContext()).clearCache();
	}
	
}
